<template>
  <div id="app">
    <router-view />
  </div>
</template>
<script>
export default {
  data() {
    return {}
  },
  mounted() {
    // 关闭浏览器窗口的时候清空浏览器缓存在localStorage的asideActive数据, 刷新不清空
    window.onload = function () {
      // console.log(window.sessionStorage['ISlogin'])
      if (!window.sessionStorage['ISlogin']) {
        // 关闭浏览器
        window.localStorage.removeItem('asideActive')
      } else {
        // 刷新
      }
    }
  }
}
</script>
<style></style>
